using UnityEngine; namespace NextMind.Examples { /// /// The ExampleScenesManager is a simple component managing users input during the example scenes (discovery et calibration). /// Other inputs may be added here. /// public class ExampleScenesManager : MonoBehaviour { private void Update() { // From this scene, go back to the hub when escape is pressed. if (Input.GetKeyUp(KeyCode.Escape)) { ExitToHub(); } } /// /// Function used to go back to hub. /// public void ExitToHub() { var hubManager = HubManager.Instance; if (hubManager != null) { hubManager.BackToHubScene(); } } } }